package com.ruoyi.safety.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 设备对象 device
 * 
 * @author ruoyi
 * @date 2024-03-11
 */
public class Device extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private String deviceId;

    /** 红线图ID */
    @Excel(name = "红线图ID")
    private String redlineId;

    /** 煤矿名称 */
    @Excel(name = "煤矿名称")
    private String mineId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String areaId;

    /** 安装地址 */
    @Excel(name = "安装地址")
    private String installAdress;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 增加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "增加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insertDate;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String ipAdress;

    /** 端口 */
    @Excel(name = "端口")
    private String port;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 是否支持通话 */
    @Excel(name = "是否支持通话")
    private Integer isSupportCalling;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private Integer enable;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String cameraStatus;

    /** 权限清单(默认管理员) */
    @Excel(name = "权限清单(默认管理员)")
    private String authUserName;

    /** 视频、语音 */
    @Excel(name = "视频、语音")
    private String deviceFunction;

    /** x坐标 */
    @Excel(name = "x坐标")
    private String coordinateX;

    /** y坐标 */
    @Excel(name = "y坐标")
    private String coordinateY;

    /** 设备规格 */
    @Excel(name = "设备规格")
    private String specification;

    public void setDeviceId(String deviceId) 
    {
        this.deviceId = deviceId;
    }

    public String getDeviceId() 
    {
        return deviceId;
    }
    public void setRedlineId(String redlineId) 
    {
        this.redlineId = redlineId;
    }

    public String getRedlineId() 
    {
        return redlineId;
    }

    public String getMineId() {
        return mineId;
    }

    public void setMineId(String mineId) {
        this.mineId = mineId;
    }

    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setAreaId(String areaId) 
    {
        this.areaId = areaId;
    }

    public String getAreaId() 
    {
        return areaId;
    }
    public void setInstallAdress(String installAdress) 
    {
        this.installAdress = installAdress;
    }

    public String getInstallAdress() 
    {
        return installAdress;
    }
    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }
    public void setInsertDate(Date insertDate) 
    {
        this.insertDate = insertDate;
    }

    public Date getInsertDate() 
    {
        return insertDate;
    }
    public void setIpAdress(String ipAdress) 
    {
        this.ipAdress = ipAdress;
    }

    public String getIpAdress() 
    {
        return ipAdress;
    }
    public void setPort(String port) 
    {
        this.port = port;
    }

    public String getPort() 
    {
        return port;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setIsSupportCalling(Integer isSupportCalling) 
    {
        this.isSupportCalling = isSupportCalling;
    }

    public Integer getIsSupportCalling() 
    {
        return isSupportCalling;
    }
    public void setEnable(Integer enable) 
    {
        this.enable = enable;
    }

    public Integer getEnable() 
    {
        return enable;
    }
    public void setCameraStatus(String cameraStatus) 
    {
        this.cameraStatus = cameraStatus;
    }

    public String getCameraStatus() 
    {
        return cameraStatus;
    }
    public void setAuthUserName(String authUserName) 
    {
        this.authUserName = authUserName;
    }

    public String getAuthUserName() 
    {
        return authUserName;
    }
    public void setDeviceFunction(String deviceFunction) 
    {
        this.deviceFunction = deviceFunction;
    }

    public String getDeviceFunction() 
    {
        return deviceFunction;
    }
    public void setCoordinateX(String coordinateX) 
    {
        this.coordinateX = coordinateX;
    }

    public String getCoordinateX() 
    {
        return coordinateX;
    }
    public void setCoordinateY(String coordinateY) 
    {
        this.coordinateY = coordinateY;
    }

    public String getCoordinateY() 
    {
        return coordinateY;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("redlineId", getRedlineId())
            .append("mineId", getMineId())
            .append("deviceName", getDeviceName())
            .append("areaId", getAreaId())
            .append("installAdress", getInstallAdress())
            .append("brand", getBrand())
            .append("insertDate", getInsertDate())
            .append("ipAdress", getIpAdress())
            .append("port", getPort())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("isSupportCalling", getIsSupportCalling())
            .append("enable", getEnable())
            .append("cameraStatus", getCameraStatus())
            .append("authUserName", getAuthUserName())
            .append("deviceFunction", getDeviceFunction())
            .append("coordinateX", getCoordinateX())
            .append("coordinateY", getCoordinateY())
            .append("specification", getSpecification())
            .toString();
    }
}
